//
//  YTPhotoLibraryManager.h
//  YUNT
//
//  Created by haha on 2017/11/19.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^finishFetchSizeBlock)(BOOL success, NSArray *imageArray);

@interface YTPhotoLibraryItem : NSObject

@property (nonatomic, strong) NSString *resourceType;

@property (nonatomic, strong) NSData *resourceData;

@property (nonatomic, strong) NSString *resourceDate;

@property (nonatomic, strong) NSString *resourceIndentifier;

@property (nonatomic, strong) NSString *resourceName;

@end

@interface YTPhotoLibraryManager : NSObject

@property (nonatomic, strong) NSDictionary *allImages;

@property (nonatomic, strong) NSDictionary *allVideos;

@property (nonatomic, strong) NSDictionary *allResources;

@property (nonatomic, strong) NSArray *allKeys;

@property (nonatomic, strong) NSArray *videoKeys;

@property (nonatomic, strong) NSArray *imageKeys;

@property (nonatomic, strong) NSMutableArray *selectedImages;

@property (nonatomic, strong) NSMutableArray *selectedVideos;

@property (nonatomic, strong) NSMutableArray *selectedResources;

+ (YTPhotoLibraryManager *)defaultManager;

- (void)readResourcesFromSandbox;

- (void)fetchSandboxResourcesWithCompletion:(finishFetchSizeBlock)completion;

- (NSArray *)readAllImagesArray;

@end
